import Vue from 'vue'
import App from './App.vue'
import store from './store/index'
import router from './router/index'
import '@/assets/style/icon/iconfont.css';
Vue.config.productionTip = false
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI)
// import {  Message,Drawer,Select,Option,Pagination,Checkbox,CheckboxGroup,MessageBox,Submenu,MenuItem, MenuItemGroup,Tree,Container,Icon,} from 'element-ui';
// Vue.component(Message.name,Message);
// Vue.component(MessageBox.name,MessageBox);
// Vue.use(Drawer);
// Vue.use(Checkbox);
// Vue.use(CheckboxGroup);
// Vue.use(Select);
// Vue.use(Option);
// Vue.use(Pagination);
// Vue.use(Submenu);
// Vue.use(MenuItem);
// Vue.use(MenuItemGroup);
// Vue.use(Tree);
// Vue.use(Container);
// Vue.use(Icon);
import * as echarts from 'echarts';
Vue.use(echarts);
import waterfall from 'vue-waterfall2'
Vue.use(waterfall)
import { imagePrefix } from '../config.js';
Vue.prototype.$imagePrefix = imagePrefix;
new Vue({
  render: h => h(App),
  store,
  router,
  beforeCreate() {
		Vue.prototype.$bus = this //安装全局事件总线，$bus就是当前应用的vm
	},
}).$mount('#app')
